home *** CD-ROM | disk | FTP | other *** search
- /*
- * Flash a push button to simulate a click in it.
- */
-
- # include "TransSkel.h"
-
-
- # define hiliteClicks 8
-
- pascal void
- SkelFlashButton (ControlHandle ctrl)
- {
- short oldHilite;
- long dummy;
-
- oldHilite = (**ctrl).contrlHilite;
- /*
- * Flash button. The constant to use varies. Universal headers release 2
- * define a new constant kInButtonControlPart. Release 1 and the old Apple
- * headers use inButton.
- */
- #if skelUnivHeaders > 1
- HiliteControl (ctrl, kInButtonControlPart);
- #else
- HiliteControl (ctrl, inButton);
- #endif
- Delay ((long) hiliteClicks, &dummy);
- HiliteControl (ctrl, oldHilite);
- }
-